home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / swingall.jar / javax / swing / plaf / basic / BasicOptionPaneUI$PropertyChangeHandler.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-07-15  |  1.4 KB  |  27 lines

  1. package javax.swing.plaf.basic;
  2.  
  3. import java.beans.PropertyChangeEvent;
  4. import java.beans.PropertyChangeListener;
  5. import java.util.EventObject;
  6.  
  7. public class BasicOptionPaneUI$PropertyChangeHandler implements PropertyChangeListener {
  8.    // $FF: synthetic field
  9.    private final BasicOptionPaneUI this$0;
  10.  
  11.    public BasicOptionPaneUI$PropertyChangeHandler(BasicOptionPaneUI var1) {
  12.       this.this$0 = var1;
  13.    }
  14.  
  15.    public void propertyChange(PropertyChangeEvent var1) {
  16.       if (((EventObject)var1).getSource() == this.this$0.optionPane) {
  17.          String var2 = var1.getPropertyName();
  18.          if (var2.equals("options") || var2.equals("initialValue") || var2.equals("icon") || var2.equals("messageType") || var2.equals("optionType") || var2.equals("message") || var2.equals("selectionValues") || var2.equals("initialSelectionValue") || var2.equals("wantsInput")) {
  19.             this.this$0.uninstallComponents();
  20.             this.this$0.installComponents();
  21.             this.this$0.optionPane.validate();
  22.          }
  23.       }
  24.  
  25.    }
  26. }
  27.